/**
 * Created by Administrator on 2017/9/7.
 */
/**
 * Created by Administrator on 2017/7/28.
 */
const Validate = {
  phoneRule : x => /^1[34578]\d{9}$/.test(x),
  passwordRule:x=>/^[0-9a-zA-Z]*$/.test(x),
  idCardRule : x => /(^\d{18}$)|(^\d{17}(\d|X|x)$)/.test(x),
  eMailRule : x => /^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/.test(x),
  cnName : x => /^[\u4e00-\u9fa5]+$/.test(x),
}
export default Validate
